words = """
怪奴底事倍伤神？半为怜春半恼春。怜春忽至恼忽去，至又无言去不闻。
昨宵庭外悲歌发，知是花魂与鸟魂？花魂鸟魂总难留，鸟自无言花自羞；
愿奴胁下生双翼，随花飞到天尽头。天尽头，何处有香丘？
未若锦囊收艳骨，一抔净土掩风流；质本洁来还洁去，强于污淖陷渠沟。
尔今死去侬收葬，未卜侬身何日丧？侬今葬花人笑痴，他年葬侬知是谁？
试看春残花渐落，便是红颜老死时。一朝春尽红颜老，花落人亡两不知！"""

template = "虚词:{0:-^5}}出现了:{1:-^5}次"
empty_word = "为"
result1 = words.count(empty_word)
print(result1)
empty_word2 = "以"
result2 = words.count(empty_word2)
# print(result2)
empty_word3 = "何"
result3 = words.count(empty_word3)
empty_word4 = "红颜"
result4 = words.count(empty_word4)
print(template.format(empty_word,result1))
print(template.format(empty_word2, result2))
print(template.format(empty_word3, result3))
print(template.format(empty_word4, result4))